import React, { Component } from "react";
import Header from "./components/Header";
import List from "./components/List";
import "./App.css";

export default class App extends Component {
  state = {
    users: []
  }
  setStateUsers = (users) => {
    this.setState({
      users
    })
  }
  render() {
    return (
      <div className="app-main">
        <Header setStateUsers={this.setStateUsers} />
        <List users={this.state.users}/>
      </div>
    );
  }
}
